package com.bestcem.xm.member.grpc.service.param.extendfield;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.*;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.util.List;

/**
 * @author dc.wang <dc.wang@idiaoyan.com>
 * @version V1.0
 * @description
 * @date 2021/7/21
 */
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class BatchInsertFieldsParam {
    /**
     * 企业标识
     */
    @NotBlank(message = "企业标识不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "企业标识格式错误")
    private String orgId;

    /**
     * 扩展字段集合
     */
    @NotEmpty(message = "扩展字段信息为空")
    @Valid
    private List<InsertFieldParam> insertFieldParams;
}
